package vip.mall.modular.goods.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import vip.mall.modular.specialist.entity.Specialist;

import java.util.List;

/**
 * @author ASUS
 * @Date 2025/2/20 13:21
 * @Descripition 用于展示规格等参数
 */
@Data
@AllArgsConstructor
@Schema(description = "商品展示类")
public class GoodsVo {
    @Schema(description = "主键")
    private String id;
    @Schema(description = "商品名称")
    private String goodsName;
    @Schema(description = "商品描述")
    private String goodsDesc;
    @Schema(description = "商品价格")
    private double goodsPrice;
    @Schema(description = "商品图片")
    private String goodsImg;
    @Schema(description = "商品所属类目id")
    private String typeId;
    @Schema(description = "商品总库存")
    private int stockNum;
    @Schema(description = "商品状态，1表示正在出售，2表示已经售空，3表示已经下架")
    private int goodsStatus;
    @Schema(description = "规格")
    private List<Specialist> specialists;
}
